<template>
	<view class="tai-title" :style="{'background-color': bgColor, 'color': color}">
		<view class="tai-title__text">
			{{ title }}
		</view>
		<slot></slot>
	</view>
</template>

<script>
	export default {
		name: 'TaiTitle',
		props: {
			title: String,
			bgColor: String,
			color: String,
		},
		data() {
			return {}
		}
	}
</script>

<style lang="scss" scoped>
	.tai-title {
		display: flex;
		align-items: center;
		justify-content: space-between;
		background-color: #FFF;
		padding: 32rpx;
	}
</style>